<?php

namespace common\components;

class Migration extends \yii\db\Migration
{

    /**
     * @var string the table options
     */
    protected $tableOptions = '';

    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();
        if ($this->db->driverName === 'mysql')
        {
            $this->tableOptions = 'ENGINE=InnoDB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci';
        }
    }
}
